package parse;

import Const.*;
import SystemManagement.SM_Manager;

public class CreateIndex extends SQL{
	public String table;
	public String attr;
	
	public CreateIndex(String t, String a){
		this.table = t;
		
		StringBuffer s = new StringBuffer(a);
		s.setLength(Constant.MAXNAME);
		this.attr = s.toString();
	}
	
	public void CrtIndex(SM_Manager sm){
		try{
			sm.CreateIndex(this.table, this.attr);
		}
		catch(Error e){
			throw e;
		}
	}
}
